package org.epam.szhuk.greenway.klymanovs;

public class MapController {
	
	public static double getOpacity(int x){
		if((x>0)&&(x<20)){return 0.2;}
		if((x>20)&&(x<40)){return 0.25;}
		if((x>40)&&(x<60)){return 0.3;}
		if((x>60)&&(x<80)){return 0.4;}
		if((x>80)&&(x<100)){return 0.5;}
		if((x>100)&&(x<120)){return 0.6;}
		if((x>120)&&(x<140)){return 0.7;}
		if((x>140)&&(x<160)){return 0.8;}
		if((x>160)&&(x<180)){return 0.9;}
		if((x>180)){return 1;}
		return 0;
	}
	
	public static double getStep(int zoom){
		if(zoom <= 9){return 0.1;}
		if(zoom <= 10){return 0.08;}
		if(zoom <= 11){ return 0.05;}
		if(zoom <= 13){return 0.04;}
		if(zoom <= 14){return 0.002;}
		return 0.0002;
		
	}
}
